package com.dao;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;

import com.entity.User;

public interface UserRepository extends CrudRepository<User, Integer> {

	public User findByName(String name);

	//@Query("from Customer u where u.name=:name")
	//public User findUser(@Param("name") String name);
}